<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商家管理</title>
    <link href="{:C('WEB_URL')}Public/admin/style/base.css" rel="stylesheet" type="text/css" />
    <link href="{:C('WEB_URL')}Public/admin/style/master.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/jquery1.9.1.js"></script>
    <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/base.js"></script>
    <script>
        function del(id){
            if(confirm('确定要删除记录吗?')){
                var url="__URL__/del/business_id/"+id;
               // alert(url);
				$.getJSON(url,function(data){
                    if(data['status']==1){
                        $(".list > tbody").children("#J_list"+data['data']).remove();
                    }else{
                        alert(data['info']);
                    }
                })
            }
        }
    </script>
	<style type="text/css">
	.box-info{position:absolute;top:0px;bottom:0;right:0px;left:0px;border:1px solid red;background-color:rgba(144,144,145,0.5);display:none}
	.UE img{height:30px;};
	</style>
</head>
<body>
<body>
    <div id="wrapper">
        <h2>商家提现</h2>
        <table class="list">
            <thead>
			<!--筛选-->
		
                <tr>
                		<th>编号</th>
					<th>商家ID</th>
					<th>商家名称</th>
					<th>银行</th>
					<th>卡号</th>
					<th>开户地</th>
					<th>姓名</th>
					<th>阿里账号</th>
					<th>姓名</th>
					<th>	金额</th>
					<th>审核</th>
					<!--<th>操作</th>-->
					
                </tr>
            </thead>  
            <tbody id='tb'>
            <volist name='res' id='vo'>
                <tr align="center" id="J_list{$vo['business_id']}">
                		<td>{$vo['id']}</td>
                    	<td>{$vo['shop_id']}</td>
                    	<td>{$vo['business_name']}</td>
                   		<td>
                   		<switch name="vo['bank']">
						    <case value="1">中国农业银行</case>
						    <case value="2">中国光大银行</case>
						    <case value="3">北京银行</case>
						    <case value="4">中国银行</case>
						    <case value="5">中国建设银行</case>
						    <case value="6">兴业银行</case>
						    <case value="7">招商银行</case>
						    <case value="8">中国民生银行</case>
						    <case value="9">广大发展银行</case>
						    <case value="10">广州银行</case>
						    <case value="11">中国工商银行</case>
						    <case value="12">中国邮政储蓄银行</case>
						    <default />{$vo['bank']}
						</switch>
						                   		
                   		
                   		</td>
                    	<td>{$vo['card_num']}</td>
                    	<td>{$vo['address']}</td>
                    	<td>{$vo['name']}</td>
                    	<td>{$vo['alipay']}</td>
                    	<td>{$vo['aliname']}</td>
                    	<empty name="vo['money']">
						<td></td>
						<else /> 
						<td>{$vo['money']}元</td>
						</empty> 
                   
                  
                  
                    <td><button abs="{$vo['id']}"  class='button'><?php if($vo['status']==1){echo "已通过";}else{echo "审核通过";} ?></button></td>
                    
                </tr>
            </volist>
            </tbody>
        </table>
        <p class="hr_10"></p>
        <div class="pages">{$page} </div>
    </div>
	
	<div class='box-info'>
	</div>
<script type="text/javascript">
	
	  $('#tb .button').click(function(){
	  	var vars=$(this).attr('abs');
		var mythis=$(this);
	 
	  	$.ajax({
						  type:'POST',
						 
						  url:"tixian",
						  dataType: "json",
						  data: 'id='+vars,
						  success:function(data){
						  	if(data==1){
						  		mythis.html('已审核');
						  	}
						  }
				})
	  })
</script>
</body>
</html>